package com.jnu.chengzhi.dao;

import com.jnu.chengzhi.entity.MyUser;
import com.jnu.chengzhi.entity.Works;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface UserDao {

    //将用户信息写入承志数据库用户表中
    public int saveUser(MyUser myUser);


    //根据名字查找用户
    public MyUser findByName(String name);


    public List<Works> getAllWorks();
}
